#pragma once

#include <memory>

class pkg;
class xprocessing_t;

class xbiz_t {
public:
    xbiz_t(std::shared_ptr<xprocessing_t> processing);
    virtual ~xbiz_t();

    virtual int handle_input(pkg& data) = 0;
    
protected:
    std::pair<int, std::string> get_err_info();
private:
    std::shared_ptr<xprocessing_t> processing_sptr_;
};
